//
//  ZCBaseRoomViewController.m
//  Unicom
//
//  Created by increase on 16/1/13.
//  Copyright © 2016年 increase. All rights reserved.
//

#import "ZCBaseRoomViewController.h"
#import "ZCTableViewViewController.h"


@interface ZCBaseRoomViewController ()

@end

@implementation ZCBaseRoomViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self createButtons];
    
}

- (void)createButtons
{
    UIButton *first_btn = [UIButton buttonWithType:UIButtonTypeSystem];
    first_btn.frame = CGRectMake(50, 100, 50, 50);
    first_btn.backgroundColor = [UIColor redColor];
    [first_btn setTitle:@"局站" forState:0];
    [self.view addSubview:first_btn];
    [first_btn addTarget:self action:@selector(firstAction) forControlEvents:UIControlEventTouchUpInside];
    
    
    UIButton *sec_btn = [UIButton buttonWithType:UIButtonTypeSystem];
    sec_btn.frame = CGRectMake(200, 100, 50, 50);
    sec_btn.backgroundColor = [UIColor redColor];
    [self.view addSubview:sec_btn];
    [sec_btn setTitle:@"机房" forState:0];
    [sec_btn addTarget:self action:@selector(secondAction) forControlEvents:UIControlEventTouchUpInside];
    
}
//firstAction
- (void)firstAction
{
    NSLog(@"局站");
    ZCTableViewViewController *tableVC = [[ZCTableViewViewController alloc] init];
    [self.navigationController pushViewController:tableVC animated:YES];
}
//second
- (void)secondAction
{
    NSLog(@"机房");
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
